package org.zfes.snowier.cloud.zbss.metting.router.service.user;

import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.zfes.snowier.core.data.DataSet;
import org.zfes.snowier.web.controller.BaseController;
import org.zfes.snowier.cloud.zbss.metting.biz.service.ISignupService;
@Controller("org.zfes.snowier.cloud.zbss.metting.router.service.user.SignupController") 
@RequestMapping("/met/service/user/signup")
public class SignupController extends BaseController {

	
	@Autowired
	private ISignupService signupService;
	
    @RequestMapping(value="/loadSignupDataSet", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public @ResponseBody  Object loadSignupDataSet(@RequestParam Map<String,Object> params){
	    DataSet dataSet=  signupService.loadSignupDataSet(params);
	    return ajaxQuery("dataSet", dataSet);
    }
	/**
	 * 
	 * @param params key:itemId_sornum_editType ,value:val
	 * @return
	 */
    @RequestMapping(value="/createSignup", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public  @ResponseBody Object createSignup(Long metId,@RequestParam Map<String,Object> params ){
		signupService.createSignup( metId, params );
    	return ajaxDoneSuccess("数据操作成功 ");
    }
	
	
	

}